package mylab.starters.security.config.csrf;

import cn.hutool.core.map.MapUtil;
import com.google.common.collect.Lists;
import lombok.Data;
import mylab.starters.security.config.SecurityProperties;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.Collection;
import java.util.Map;

@Data
@ConfigurationProperties(prefix = SecurityProperties.PREFIX + "." + CsrfProperties.PREFIX)
public class CsrfProperties {
    public static final String PREFIX = "csrf";

    private boolean enabled = true;
    private Collection<String> urlPatterns = Lists.newArrayList("/*");
    private Map<String, String> initParameters = MapUtil.empty();

}
